package com.missyoubug.easyjtest.dao;

import com.missyoubug.easyjtest.entity.EasyTestInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EasyTestDao {

    @Select("select   bean_name, method_name,method_message,method_parameter,add_time from easy_test  ORDER BY add_time desc limit #{page},#{pageSize}")
    List<EasyTestInfoEntity> getTestList(int page, int pageSize);

    @Select("select count(1) from easy_test")
    int pageCount();

    @Select("select   bean_name, method_name,method_message,method_parameter,add_time from easy_test where id=#{id} ")
    EasyTestInfoEntity getTestInfo(int id);
}
